obj-m += vd_fb.o
vd_fb-objs := vd_fb_load.o vd_fb_fops.o vd_fb_drv_ops.o vd_net.o

ifndef $(LINUX_KERN_VER)
LINUX_KERN_VER := $(shell uname -r)
endif

EXTRA_CFLAGS = -I$(M)/../include -I$(M)/../net -Wall

KERNDIR ?= /lib/modules/$(LINUX_KERN_VER)/build
PWD := $(shell pwd)

default:
	@cp ../net/vd_net.o ./
	$(MAKE) -C $(KERNDIR) M=$(PWD) modules

clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions Module.symvers modules.order Module.markers
